package com.example.shiwuyouproject.ui.fragment.my.activity

import android.view.View
import com.example.shiwuyouproject.base.BaseVmActivity
import com.example.shiwuyouproject.databinding.ActivityTeachingaddressBinding
import com.example.shiwuyouproject.ui.fragment.my.activity.adapter.SubjectRightAdapter
import com.example.shiwuyouproject.ui.fragment.my.viewmodel.TeachingAddressViewModel

/**
 *授课地址/地区
 */
class TeachingAddressActivity:BaseVmActivity<ActivityTeachingaddressBinding, TeachingAddressViewModel>(){
    override fun viewModelClass(): Class<TeachingAddressViewModel> =TeachingAddressViewModel::class.java

    override fun getViewBinding(): ActivityTeachingaddressBinding {
        return ActivityTeachingaddressBinding.inflate(layoutInflater)
    }

    override fun initView() {
        mBinding.myTitleBar.tvTitle.text="授课区域"
        mBinding.myTitleBar.tvRightTitle.visibility= View.VISIBLE
    }
    private var myRightAdapter: SubjectRightAdapter?=null
    override fun initData() {
            myRightAdapter=SubjectRightAdapter()
           mBinding.myRecyclerView.adapter=myRightAdapter
    }

    override fun setListener() {
        mBinding.myTitleBar.tvRightTitle.setOnClickListener { //完成


        }
    }

    override fun observe() {

    }
}